import request from '../../../utils/request'

//获取关卡列表
export const getLevels=function getLevels(data: any){
    return request({
        url:'/api/Practice/GetLevels',
        method:'get',
        params:data
    })
}

//删除关卡
export const DeleteLevel=function DeleteLevel(data: any){
    return request({
        url:'/api/Practice/DeleteLevel',
        method:'post',
        data:data
    })
}

//发布-取消 关卡
export const PublishLevels=function PublishLevels(data: any){
    return request({
        url:'/api/Practice/PublishLevels',
        method:'post',
        data:data
    })
}

//禁用-启用 关卡
export const BanLevels=function BanLevels(data: any){
    return request({
        url:'/api/Practice/BanLevels',
        method:'post',
        data:data
    })
}

//新增关卡
export const AddLevel=function BanLevels(data: any){
    return request({
        url:'/api/Practice/AddLevel',
        method:'post',
        data:data
    })
}